export const RefreshOnIDChange = {
  watch: {
    // eslint-disable-next-line func-names
    '$route.params.id': function () {
      this.refreshData();
    },
  },
};

export const RefreshRelatedOnIDChange = {
  watch: {
    // eslint-disable-next-line func-names
    '$route.params.id': function () {
      if (this.getRelated) {
        this.getRelated();
      }
    },
  },
};
